package com.sz.biz.common.customer.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.sz.biz.common.constants.CommCodes;
import com.sz.common.core.system.entity.SysDict;

/**
 * Function: TODO: ADD FUNCTION <br>
 * Author: Johnboy <br>
 * Date: 2017-08-15 10:46:00
 */
public class NoticeMessageTypeItem extends SysDict {
    private Integer id;
    private String catalog;
    private String code;
    private String name;
    private Integer ordinal;
    private String description;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Boolean selected = false;
    private String messageBody;

    public NoticeMessageTypeItem() {
    }

    public NoticeMessageTypeItem(SysDict sysDict) {
        if (sysDict.getCatalog().equalsIgnoreCase(CommCodes.SYS_DICT_MESSAGE_NOTICE_TYPE)) {
            this.id = sysDict.getId();
            this.catalog = sysDict.getCatalog();
            this.code = sysDict.getCode();
            this.name = sysDict.getName();
            this.description = sysDict.getDescription();
            this.ordinal = sysDict.getOrdinal();
        }
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String getCatalog() {
        return catalog;
    }

    @Override
    public void setCatalog(String catalog) {
        this.catalog = catalog;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public Integer getOrdinal() {
        return ordinal;
    }

    @Override
    public void setOrdinal(Integer ordinal) {
        this.ordinal = ordinal;
    }

    @Override
    public String getDescription() {
        return description;
    }

    @Override
    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getSelected() {
        return selected;
    }

    public void setSelected(Boolean selected) {
        this.selected = selected;
    }

    public String getMessageBody() {
        return messageBody;
    }

    public void setMessageBody(String messageBody) {
        this.messageBody = messageBody;
    }
}
